﻿using System;
using System.Collections.Generic;

using AzureGames.Model;
using System.Text;

namespace AzureGames.Data.InMemory
{
    public class GameDefinitionRepository : IGameDefinitionRepository
    {
        public List<GameDefinition> GetGameDefinitions()
        {
            return new List<GameDefinition> 
            { 
                GetAmazonsGameDefinition(),
                GetArena5GameDefinition()
            };
        }
       

        public AzureResult UpdateGameDefinition(GameDefinition gameDefinition)
        {
            throw new NotImplementedException();
        }
        
        private GameDefinition GetArena5GameDefinition()
        {
            return new GameDefinition
            {
                ID = 2,
                Name = "Arena5",
                Version = 1,
                HTML = GetAren5HTML(),
                CSSFiles = new List<Guid> { new Guid("BB83CC80-C002-4033-A338-EC4BA4EEECC3") },
                JavascriptFiles = new List<Guid> 
                { 
                  new Guid("C67C72A1-0479-4DF9-8C1A-BF7EF0E93211"),
                    new Guid("3BB609FE-0B99-4802-9BA2-6330B60865A4"),
                    new Guid("AB6F3168-FA91-47C1-9FC1-FCAAA69C2020"),
                     new Guid("C0CEA180-AF06-4A2C-8E29-D14AC155BBD5"),
                    new Guid("C8E0DCF7-F84D-48BD-B76C-4745A9975DCB")
                , new Guid("A4B2F8FC-CC06-4FE3-B8A8-7EA7CA7D3D85")
                , new Guid("60AA185B-E1F6-47D9-89FB-07ECBCD3E66F")
                , new Guid("B998B2FB-6447-47DE-9387-A9A6B6DEF0FD")
                , new Guid("2BB1237A-7726-4D2F-AD22-C415E3482B5E")               
                },
                Media = new List<Guid> { new Guid("1FD04B1A-3C12-4B3C-AE67-E2234B9ACEAD"), new Guid("7E2BC6AE-71EF-43EC-A95B-C3C56A26AF8D"),new Guid("55327D16-B552-40BF-AED2-28706E6AA333"),new Guid("E986F7DD-135C-481B-8DFF-B79091DD459B"),new Guid("96BF143D-F4A5-49D5-AA7E-D70B1364C77D"),new Guid("03F82ED1-DFEE-49AD-94A5-311F07038AD9"),new Guid("65A354D8-1DF4-4982-BE80-E0863899B081"),new Guid("870640BA-A6DB-4418-907F-BE40EF1174B7")
                    ,new Guid("4B06BC22-51D6-454D-86FB-4F5C51D83E10")
                    ,new Guid("C3B09623-4B7B-46CD-962E-70794CD10547")
                    ,new Guid("65C82A3F-D013-4D55-BEA5-AF6E270AB9E2") },
                StartingProperties = GetArena5Properties(),
                GameImage = new Guid("F4F17A0B-B434-4AAD-82C1-36AAA3672EC3"),
                RequiredNumberOfPlayers = 1,
                ShortDescription = "ARENA5 - HTML5 game by Kevin Roast",
                Description = "Winner of Canvas Innovation Prize in the Microsoft Dev Unplugged contest! Recently updated to now run at a full 60 frames-per-second and improved game performance. It's more than a little \"inspired\" by Geometry Wars and similar, but that's not a bad thing... A good test of canvas performance as it hits the browser hard with lots of glow effects and particle explosions. Another example of my canvas 3D library - K3D in action! Works best in Chrome and Safari, FireFox and IE9 struggle a bit with the shiny effects.",
                Instructions = "WASD or Arrow keys - move your ship. Use the mouse to aim your fire! Pickup the score multipliers dropped by the enemy ships - higher score means weapon power ups!",
                CreatedDate = new DateTime(2012, 05, 04),
                LastUpdatedDate = new DateTime(2012, 05, 04)
            };
        }

        private List<string> GetArena5Properties()
        {
            return new List<string> { };
        }

        private string GetAren5HTML()
        {//body{   font-family: Segoe UI Light, Arial, Helvetica;   background-color: #000;   background-image: url(images/arena5_bg2.jpg);   background-repeat: no-repeat;   margin: 0;}a, a:visited, a:active, a:hover { color: #fff }.wrapper{   margin-top: 16px;   text-align: center;   white-space: nowrap;}
            //<style type=\"text/css\">canvas{   background-color: #000;   cursor: crosshair;   -moz-box-shadow: 0px 0px 6px #000;   -webkit-box-shadow: 0px 0px 6px #000;   box-shadow: 0px 0px 6px #000;}.info{   display: inline-block;   vertical-align: top;   margin-left: 1.5em;}.infopanel{   text-align: left;   max-width: 20em;   white-space: normal;   background-color: #444488;   color: #fff;   line-height: 1.5em;   padding: 0.5em;   margin-top: 4.5em;   -moz-box-shadow: 0px 0px 6px #222266;   -webkit-box-shadow: 0px 0px 6px #222266;   box-shadow: 0px 0px 6px #222266;}.settings{   padding-left: 0.5em;}.button-overlay{   position: absolute;   right: 1em;}.note{   color: yellow;}.small{   padding-left: 1em;   font-size: 0.75em;   line-height: 1.333em;}.section{   padding-top: 0.75em;}.results{   color: white}.results-wrapper{   display: none;   font-size: 1.0em;   border: 2px solid grey;   background-color: #333333;   padding: 0.5em;   margin-top: 1em;   line-height: 1.25em;}.toggle-area{   display: none;}.toggler{   text-decoration: none;}      </style>   
            return "        <body>      <div class=\"wrapper\">         <div class=\"button-overlay\">            <!-- AddThis Button BEGIN -->            <div class=\"addthis_toolbox addthis_default_style addthis_32x32_style\">            <a class=\"addthis_button_preferred_1\"></a>            <a class=\"addthis_button_preferred_2\"></a>            <a class=\"addthis_button_compact\"></a>            <a class=\"addthis_counter addthis_bubble_style\"></a>            </div>            <!-- AddThis Button END -->         </div>         <canvas id=\"canvas\" width=\"600\" height=\"600\"></canvas> </div>         </div>      </div>   </body>   <script>       var ua = navigator.userAgent.toLowerCase();       if (ua.indexOf(\" mac \") != -1) {           document.getElementById('canvas').style.cursor = \"move\";       }   </script>";
            //return "      <script async defer src=\"http://code.jquery.com/jquery-1.4.2.min.js\"></script>      <script async defer src=\"http://s7.addthis.com/js/250/addthis_widget.js#pubid=xa-4e4813104686cad8\"></script>      <style type=\"text/css\">body{   font-family: Segoe UI Light, Arial, Helvetica;   background-color: #000;   background-image: url(images/arena5_bg2.jpg);   background-repeat: no-repeat;   margin: 0;}a, a:visited, a:active, a:hover { color: #fff }.wrapper{   margin-top: 16px;   text-align: center;   white-space: nowrap;}canvas{   background-color: #000;   cursor: crosshair;   -moz-box-shadow: 0px 0px 6px #000;   -webkit-box-shadow: 0px 0px 6px #000;   box-shadow: 0px 0px 6px #000;}.info{   display: inline-block;   vertical-align: top;   margin-left: 1.5em;}.infopanel{   text-align: left;   max-width: 20em;   white-space: normal;   background-color: #444488;   color: #fff;   line-height: 1.5em;   padding: 0.5em;   margin-top: 4.5em;   -moz-box-shadow: 0px 0px 6px #222266;   -webkit-box-shadow: 0px 0px 6px #222266;   box-shadow: 0px 0px 6px #222266;}.settings{   padding-left: 0.5em;}.button-overlay{   position: absolute;   right: 1em;}.note{   color: yellow;}.small{   padding-left: 1em;   font-size: 0.75em;   line-height: 1.333em;}.section{   padding-top: 0.75em;}.results{   color: white}.results-wrapper{   display: none;   font-size: 1.0em;   border: 2px solid grey;   background-color: #333333;   padding: 0.5em;   margin-top: 1em;   line-height: 1.25em;}.toggle-area{   display: none;}.toggler{   text-decoration: none;}      </style>   </head>      <body>      <div class=\"wrapper\">         <div class=\"button-overlay\">            <!-- AddThis Button BEGIN -->            <div class=\"addthis_toolbox addthis_default_style addthis_32x32_style\">            <a class=\"addthis_button_preferred_1\"></a>            <a class=\"addthis_button_preferred_2\"></a>            <a class=\"addthis_button_compact\"></a>            <a class=\"addthis_counter addthis_bubble_style\"></a>            </div>            <!-- AddThis Button END -->         </div>         <canvas id=\"canvas\" width=\"600\" height=\"600\"></canvas>         <div class=\"info\">            <div class=\"infopanel\">               <div><b>ARENA5 - HTML5 game by Kevin Roast</b></div>               <div class=\"settings\">                  <p class=\"section\">WASD or Arrow keys - move your ship</p>                  <p>Use the mouse to aim your fire!</p>                  <p>Pickup the score multipliers dropped by the enemy ships - higher score means weapon power ups!</p>                  <p class=\"section\"><a href=\"../index.html\">More HTML5 awesomeness.</a></p>                  <p><a href=\"arena5-src.zip\">Download the JavaScript source code</a></p>                  <p><a href=\"./index-debug.html\">Game DEBUG panel</a></p>                  <p class=\"note section\">Last updated: 12th April 2012</p>                  <p class=\"note small\">Sound effects (Chrome only) - toggle with 'T' key.</p>                  <p class=\"note small\">Chrome 18 Gamepad API support added <a class=\"toggler\" href=\"#\" onclick=\"$('#toggle-1').toggle();\">[+]</a>                     <span id=\"toggle-1\" class=\"toggle-area\"><br>                     1. Browse to <b>chrome://flags</b> and <b>Enable Gamepad</b><br>                     2. Restart Chrome.<br>                     3. Plug in XBox360 USB Gamepad.<br>                     4. Refresh Arena5 page - press 'A' button to start.<br>                     5. Use the analogue sticks to move and fire.<br>                     </span>                  </p>                  <p class=\"note small\">                     <a href=\"http://people.mozilla.com/~tmielczarek/mouselock+gamepad/\">FireFox Nightly 11.0a1</a> Gamepad API support added! <a class=\"toggler\" href=\"#\" onclick=\"$('#toggle-2').toggle();\">[+]</a>                     <span id=\"toggle-2\" class=\"toggle-area\"><br>                     1. Plug in XBox360 USB Gamepad.<br>                     2. Press 'A' button to start.<br>                     3. Use the analogue sticks to move and fire.<br>                     </span>                  </p>               </div>               <div class=\"section\"><b>OTHER KEYS</b></div>               <div class=\"settings\">                  <p>T - Toggle sound (Chrome only)</p>                  <p>[ ] - Zoom in/out world</p>                  <p>ESC - Pause game</p>                  <p class=\"section\" style=\"font-size: 0.75em\">Contact me by email: kevtoast at yahoo.com</p>                  <p style=\"font-size: 0.75em\">Twitter: <a href=\"http://twitter.com/kevinroast\" target=\"new\">@kevinroast</a></p>               </div>            </div>            <div id=\"results-wrapper\" class=\"results-wrapper\">               <div class=\"results\" id=\"results\"></div>               <div class=\"results\"><p><a id=\"tweetlink\" href=\"#\" target=\"new\">Tweet your score!</a></p></div>            </div>         </div>      </div>   </body>   <script>       var ua = navigator.userAgent.toLowerCase();       if (ua.indexOf(\" mac \") != -1) {           document.getElementById('canvas').style.cursor = \"move\";       }   </script>";
        }

        // this is a temporary method until this is stored in azure blob storage
        private GameDefinition GetAmazonsGameDefinition()
        {
            return new GameDefinition
            {
                ID = 1,
                Name = "Amazons",
                Version = 1,
                HTML = GetAmazonsHTML(),
                CSSFiles = new List<Guid> { new Guid("FAF03F72-024B-4651-8A9D-C84807CF7F61") },
                JavascriptFiles = new List<Guid> { new Guid("5952650D-1E18-43F6-9134-1A4AF7315D23"),  
                                                    new Guid("C80EF4D7-86E9-4332-9238-58D14015A6DF"),
                                                    new Guid("38793EDF-2EF9-4422-A37D-E960CC811C71"),
                                                    new Guid("B3739128-ECB8-4524-961F-E1A66D154A79"),                                                      
                                                    new Guid("6B7CE3B4-695A-46F0-A5B8-382F86BA63BE"),
                                                    new Guid("46E475BF-22AD-463E-A326-A9C2F90FA391"), 
                                                    new Guid("0525E0E0-5F6B-451F-B116-728E2DE4167D") },
                Media = new List<Guid> { new Guid("116D6138-5473-48BC-ACA8-D112C2951AD4"), 
                                    new Guid("AE907743-FCDA-4D9D-AE1F-B6E75E34A647"), new Guid("A4F5F1AC-43E0-4A39-8D86-1E510465837F"), new Guid("ED517214-138F-4D22-AF4F-DA3BBE1919D2"), 
                                    new Guid("C4A9BF33-42DA-4976-ACFC-B3DB3DB3ECB3"), new Guid("CA9DB050-8DC7-4CDC-819F-9C185E724183"), new Guid("7218C75D-2AE5-4A8F-B6FF-E45D5017723F"), 
                                    new Guid("3ED2B825-CE5C-41B1-A139-AB517F55B87E"), new Guid("3189F574-329B-45A3-A5DA-23A51974E045"), },
                StartingProperties = BuildStartingBoard(),
                GameImage = new Guid("31486A69-09BF-4BF9-A2CA-38B15AA7A808"),
                RequiredNumberOfPlayers = 2,
                ShortDescription = "Play a game of Amazons!!!",
                Description = "The Game of the Amazons (in Spanish, El Juego de las Amazonas; often called Amazons for short) is a two-player abstract strategy game invented in 1988 by Walter Zamkauskas of Argentina. It is a member of the territorial game family, a distant relative of Go and chess. El Juego de las Amazonas (The Game of the Amazons) is a trademark of Ediciones de Mente.  The Game of the Amazons is played on a 10x10 chessboard (or an international checkerboard). Some players prefer to use a monochromatic board. The two players are White and Black; each player has four amazons (not to be confused with the Amazon Fairy chess piece), which start on the board in the configuration shown at right. A supply of markers (checkers, poker chips, etc.) is also required.",
                Instructions = "Amazons is a two player strategy game where the players player alternating turns consisting of moving a single amazon followed by the amazon that moved firing an arrow.  The movement and shooting is similar to the movement of a chess queen.  The result of firing an arrow is the location the arrow is shot into is blocked for the duration of the game.  The player who is the last one who can make a valid move wins.",
                CreatedDate = new DateTime(2012, 05, 04),
                LastUpdatedDate = new DateTime(2012, 05, 04)
            };
        }

        private List<string> BuildStartingBoard()
        {
            return new List<string>
                       {                         
                         "[[2,2,2,0,2,2,0,2,2,2],[2,2,2,2,2,2,2,2,2,2],[2,2,2,2,2,2,2,2,2,2],[0,2,2,2,2,2,2,2,2,0],[2,2,2,2,2,2,2,2,2,2],[2,2,2,2,2,2,2,2,2,2],[1,2,2,2,2,2,2,2,2,1],[2,2,2,2,2,2,2,2,2,2],[2,2,2,2,2,2,2,2,2,2],[2,2,2,1,2,2,1,2,2,2]]",
                         "0", // currentPhase
                         "0", // currentPlayer
                         "" // lastMove
                       };
        }

        private string GetAmazonsHTML()
        {
            #region some HTML
            return "<div id=\"game\"><table id=\"amazons\">        <tr>            <td>                <div id=\"Row9Col0\" class=\"empty2\" onclick=\"divClick('Row9Col0')\" />            </td>            <td>                <div id=\"Row9Col1\" class=\"empty1\" onclick=\"divClick('Row9Col1')\" />            </td>            <td>                <div id=\"Row9Col2\" class=\"empty2\" onclick=\"divClick('Row9Col2')\" />            </td>            <td>                <div id=\"Row9Col3\" class=\"empty1\" onclick=\"divClick('Row9Col3')\" />            </td>            <td>                <div id=\"Row9Col4\" class=\"empty2\" onclick=\"divClick('Row9Col4')\" />            </td>            <td>                <div id=\"Row9Col5\" class=\"empty1\" onclick=\"divClick('Row9Col5')\" />            </td>            <td>                <div id=\"Row9Col6\" class=\"empty2\" onclick=\"divClick('Row9Col6')\" />            </td>            <td>                <div id=\"Row9Col7\" class=\"empty1\" onclick=\"divClick('Row9Col7')\" />            </td>            <td>                <div id=\"Row9Col8\" class=\"empty2\" onclick=\"divClick('Row9Col8')\" />            </td>            <td>                <div id=\"Row9Col9\" class=\"empty1\" onclick=\"divClick('Row9Col9')\" />            </td>        </tr>        <tr>            <td>                <div id=\"Row8Col0\" class=\"empty1\" onclick=\"divClick('Row8Col0')\" />            </td>            <td>                <div id=\"Row8Col1\" class=\"empty2\" onclick=\"divClick('Row8Col1')\" />            </td>            <td>                <div id=\"Row8Col2\" class=\"empty1\" onclick=\"divClick('Row8Col2')\" />            </td>            <td>                <div id=\"Row8Col3\" class=\"empty2\" onclick=\"divClick('Row8Col3')\" />            </td>            <td>                <div id=\"Row8Col4\" class=\"empty1\" onclick=\"divClick('Row8Col4')\" />            </td>            <td>                <div id=\"Row8Col5\" class=\"empty2\" onclick=\"divClick('Row8Col5')\" />          </td>            <td>                <div id=\"Row8Col6\" class=\"empty1\" onclick=\"divClick('Row8Col6')\" />            </td>            <td>                <div id=\"Row8Col7\" class=\"empty2\" onclick=\"divClick('Row8Col7')\" />            </td>            <td>                <div id=\"Row8Col8\" class=\"empty1\" onclick=\"divClick('Row8Col8')\" />            </td>            <td>                <div id=\"Row8Col9\" class=\"empty2\" onclick=\"divClick('Row8Col9')\" />            </td>        </tr>        <tr>            <td>                <div id=\"Row7Col0\" class=\"empty2\" onclick=\"divClick('Row7Col0')\" />            </td>            <td>                <div id=\"Row7Col1\" class=\"empty1\" onclick=\"divClick('Row7Col1')\" />            </td>            <td>                <div id=\"Row7Col2\" class=\"empty2\" onclick=\"divClick('Row7Col2')\" />            </td>            <td>                <div id=\"Row7Col3\" class=\"empty1\" onclick=\"divClick('Row7Col3')\" />            </td>            <td>                <div id=\"Row7Col4\" class=\"empty2\" onclick=\"divClick('Row7Col4')\" />            </td>            <td>                <div id=\"Row7Col5\" class=\"empty1\" onclick=\"divClick('Row7Col5')\" />            </td>            <td>                <div id=\"Row7Col6\" class=\"empty2\" onclick=\"divClick('Row7Col6')\" />            </td>            <td>                <div id=\"Row7Col7\" class=\"empty1\" onclick=\"divClick('Row7Col7')\" />            </td>            <td>                <div id=\"Row7Col8\" class=\"empty2\" onclick=\"divClick('Row7Col8')\" />            </td>            <td>                <div id=\"Row7Col9\" class=\"empty1\" onclick=\"divClick('Row7Col9')\" />            </td>        </tr>        <tr>            <td>                <div id=\"Row6Col0\" class=\"empty1\" onclick=\"divClick('Row6Col0')\" />            </td>            <td>                <div id=\"Row6Col1\" class=\"empty2\" onclick=\"divClick('Row6Col1')\" />            </td>            <td>                <div id=\"Row6Col2\" class=\"empty1\" onclick=\"divClick('Row6Col2')\" />            </td>            <td>                <div id=\"Row6Col3\" class=\"empty2\" onclick=\"divClick('Row6Col3')\" />            </td>            <td>                <div id=\"Row6Col4\" class=\"empty1\" onclick=\"divClick('Row6Col4')\" />            </td>            <td>                <div id=\"Row6Col5\" class=\"empty2\" onclick=\"divClick('Row6Col5')\" />            </td>            <td>                <div id=\"Row6Col6\" class=\"empty1\" onclick=\"divClick('Row6Col6')\" />            </td>            <td>                <div id=\"Row6Col7\" class=\"empty2\" onclick=\"divClick('Row6Col7')\" />            </td>            <td>                <div id=\"Row6Col8\" class=\"empty1\" onclick=\"divClick('Row6Col8')\" />            </td>            <td>                <div id=\"Row6Col9\" class=\"empty2\" onclick=\"divClick('Row6Col9')\" />            </td>        </tr>        <tr>            <td>                <div id=\"Row5Col0\" class=\"empty2\" onclick=\"divClick('Row5Col0')\" />            </td>            <td>                <div id=\"Row5Col1\" class=\"empty1\" onclick=\"divClick('Row5Col1')\" />            </td>            <td>                <div id=\"Row5Col2\" class=\"empty2\" onclick=\"divClick('Row5Col2')\" />            </td>            <td>                <div id=\"Row5Col3\" class=\"empty1\" onclick=\"divClick('Row5Col3')\" />            </td>            <td>                <div id=\"Row5Col4\" class=\"empty2\" onclick=\"divClick('Row5Col4')\" />            </td>            <td>                <div id=\"Row5Col5\" class=\"empty1\" onclick=\"divClick('Row5Col5')\" />            </td>            <td>                <div id=\"Row5Col6\" class=\"empty2\" onclick=\"divClick('Row5Col6')\" />          </td>            <td>                <div id=\"Row5Col7\" class=\"empty1\" onclick=\"divClick('Row5Col7')\" />            </td>            <td>                <div id=\"Row5Col8\" class=\"empty2\" onclick=\"divClick('Row5Col8')\" />            </td>            <td>                <div id=\"Row5Col9\" class=\"empty1\" onclick=\"divClick('Row5Col9')\" />            </td>        </tr>        <tr>            <td>                <div id=\"Row4Col0\" class=\"empty1\" onclick=\"divClick('Row4Col0')\" />            </td>            <td>                <div id=\"Row4Col1\" class=\"empty2\" onclick=\"divClick('Row4Col1')\" />            </td>            <td>                <div id=\"Row4Col2\" class=\"empty1\" onclick=\"divClick('Row4Col2')\" />            </td>            <td>                <div id=\"Row4Col3\" class=\"empty2\" onclick=\"divClick('Row4Col3')\" />            </td>            <td>                <div id=\"Row4Col4\" class=\"empty1\" onclick=\"divClick('Row4Col4')\" />            </td>            <td>                <div id=\"Row4Col5\" class=\"empty2\" onclick=\"divClick('Row4Col5')\" />            </td>            <td>                <div id=\"Row4Col6\" class=\"empty1\" onclick=\"divClick('Row4Col6')\" />            </td>            <td>                <div id=\"Row4Col7\" class=\"empty2\" onclick=\"divClick('Row4Col7')\" />            </td>            <td>                <div id=\"Row4Col8\" class=\"empty1\" onclick=\"divClick('Row4Col8')\" />            </td>            <td>                <div id=\"Row4Col9\" class=\"empty2\" onclick=\"divClick('Row4Col9')\" />            </td>        </tr>        <tr>            <td>                <div id=\"Row3Col0\" class=\"empty2\" onclick=\"divClick('Row3Col0')\" />            </td>            <td>                <div id=\"Row3Col1\" class=\"empty1\" onclick=\"divClick('Row3Col1')\" />            </td>            <td>                <div id=\"Row3Col2\" class=\"empty2\" onclick=\"divClick('Row3Col2')\" />            </td>            <td>                <div id=\"Row3Col3\" class=\"empty1\" onclick=\"divClick('Row3Col3')\" />            </td>            <td>                <div id=\"Row3Col4\" class=\"empty2\" onclick=\"divClick('Row3Col4')\" />            </td>            <td>               <div id=\"Row3Col5\" class=\"empty1\" onclick=\"divClick('Row3Col5')\" />            </td>            <td>                <div id=\"Row3Col6\" class=\"empty2\" onclick=\"divClick('Row3Col6')\" />            </td>            <td>                <div id=\"Row3Col7\" class=\"empty1\" onclick=\"divClick('Row3Col7')\" />            </td>            <td>                <div id=\"Row3Col8\" class=\"empty2\" onclick=\"divClick('Row3Col8')\" />            </td>            <td>                <div id=\"Row3Col9\" class=\"empty1\" onclick=\"divClick('Row3Col9')\" />            </td>        </tr>        <tr>            <td>                <div id=\"Row2Col0\" class=\"empty1\" onclick=\"divClick('Row2Col0')\" />            </td>            <td>                <div id=\"Row2Col1\" class=\"empty2\" onclick=\"divClick('Row2Col1')\" />            </td>            <td>                <div id=\"Row2Col2\" class=\"empty1\" onclick=\"divClick('Row2Col2')\" />            </td>            <td>               <div id=\"Row2Col3\" class=\"empty2\" onclick=\"divClick('Row2Col3')\" />            </td>            <td>                <div id=\"Row2Col4\" class=\"empty1\" onclick=\"divClick('Row2Col4')\" />            </td>            <td>                <div id=\"Row2Col5\" class=\"empty2\" onclick=\"divClick('Row2Col5')\" />            </td>            <td>                <div id=\"Row2Col6\" class=\"empty1\" onclick=\"divClick('Row2Col6')\" />            </td>            <td>                <div id=\"Row2Col7\" class=\"empty2\" onclick=\"divClick('Row2Col7')\" />            </td>            <td>                <div id=\"Row2Col8\" class=\"empty1\" onclick=\"divClick('Row2Col8')\" />            </td>            <td>                <div id=\"Row2Col9\" class=\"empty2\" onclick=\"divClick('Row2Col9')\" />            </td>        </tr>        <tr>            <td>                <div id=\"Row1Col0\" class=\"empty2\" onclick=\"divClick('Row1Col0')\" />            </td>            <td>               <div id=\"Row1Col1\" class=\"empty1\" onclick=\"divClick('Row1Col1')\" />            </td>            <td>                <div id=\"Row1Col2\" class=\"empty2\" onclick=\"divClick('Row1Col2')\" />            </td>            <td>                <div id=\"Row1Col3\" class=\"empty1\" onclick=\"divClick('Row1Col3')\" />            </td>            <td>                <div id=\"Row1Col4\" class=\"empty2\" onclick=\"divClick('Row1Col4')\" />            </td>            <td>                <div id=\"Row1Col5\" class=\"empty1\" onclick=\"divClick('Row1Col5')\" />            </td>            <td>                <div id=\"Row1Col6\" class=\"empty2\" onclick=\"divClick('Row1Col6')\" />            </td>            <td>                <div id=\"Row1Col7\" class=\"empty1\" onclick=\"divClick('Row1Col7')\" />            </td>            <td>                <div id=\"Row1Col8\" class=\"empty2\" onclick=\"divClick('Row1Col8')\" />            </td>            <td>                <div id=\"Row1Col9\" class=\"empty1\" onclick=\"divClick('Row1Col9')\" />            </td>        </tr>        <tr>            <td>               <div id=\"Row0Col0\" class=\"empty1\" onclick=\"divClick('Row0Col0')\" />            </td>            <td>                <div id=\"Row0Col1\" class=\"empty2\" onclick=\"divClick('Row0Col1')\" />            </td>            <td>                <div id=\"Row0Col2\" class=\"empty1\" onclick=\"divClick('Row0Col2')\" />            </td>            <td>                <div id=\"Row0Col3\" class=\"empty2\" onclick=\"divClick('Row0Col3')\" />            </td>            <td>                <div id=\"Row0Col4\" class=\"empty1\" onclick=\"divClick('Row0Col4')\" />            </td>            <td>                <div id=\"Row0Col5\" class=\"empty2\" onclick=\"divClick('Row0Col5')\" />            </td>            <td>                <div id=\"Row0Col6\" class=\"empty1\" onclick=\"divClick('Row0Col6')\" />            </td>            <td>                <div id=\"Row0Col7\" class=\"empty2\" onclick=\"divClick('Row0Col7')\" />            </td>            <td>                <div id=\"Row0Col8\" class=\"empty1\" onclick=\"divClick('Row0Col8')\" />            </td>            <td>                <div id=\"Row0Col9\" class=\"empty2\" onclick=\"divClick('Row0Col9')\" />            </td>        </tr>    </table></div><div id=\"finalBanner\" class=\"noShow\"></div>";
            #endregion
        }

        private List<AIScript> GetAmazonsAIScripts()
        {
            return new List<AIScript>();
        }

        public GameDefinition GetGameDefinition(int ID)
        {
            switch (ID)
            {
                case 1:
                    return GetAmazonsGameDefinition();
                case 2:
                    return GetArena5GameDefinition();
            }
            throw new ApplicationException("As this is in memory, ID was not a valid game definition should not happen..");
        }





        public AzureResult AddGameDefinition(GameDefinition gameDefinition)
        {
            throw new NotImplementedException();
        }
    }
}
